//
//  DetailTableViewCell.m
//  HumorousSript
//
//  Created by 李欢 on 15/6/22.
//  Copyright (c) 2015年 李欢. All rights reserved.
//

#import "DetailTableViewCell.h"
#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height

@implementation DetailTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.imageview = [[UIImageView alloc]initWithFrame:CGRectMake(20/375.0*Width, 20/667.0*Height, 50/375.0*Width, 50/667.0*Height)];
        self.imageview.layer.cornerRadius = 25;
        self.imageview.clipsToBounds = YES;

        self.name = [[UILabel alloc]initWithFrame:CGRectMake(80/375.0*Width, 20/667.0*Height, 150/375.0*Width, 30/667.0*Height)];
        self.text = [[UILabel alloc]initWithFrame:CGRectZero];
        self.text.numberOfLines = 0;

//        UIImage * im = [UIImage imageNamed:@"5.png"];
//        self.image = [[UIImageView alloc]initWithFrame:CGRectMake(210, 20, 30, 30)];
//        [self.image setImage:im];
        self.count = [[UILabel alloc]initWithFrame:CGRectMake(240/375.0*Width, 20/667.0*Height, 30/375.0*Width, 30/667.0*Height)];

        [self.contentView addSubview:self.imageview];
        [self.contentView addSubview:self.name];
        [self.contentView addSubview:self.text];
        [self.contentView addSubview:self.image];
        [self.contentView addSubview:self.count];
        
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
